package com.bwsoft.admin.service;

import java.util.List;

import com.bwsoft.admin.domain.NewsCategory;
import com.bwsoft.admin.domain.valueObject.NewsCategoryVO;
import com.bwsoft.domain.Dictionary;
import com.bwsoft.domain.DictionaryData;
import com.bwsoft.model.Message;

public interface NewsCategoryService {
	public static final String NAME = "NewsCategoryServiceImpl";
	
	/**
	 * 分页查询资讯类别
	 * @return 类别的集合
	 */
	List<NewsCategory> findData(Integer page, Integer rows);
	
	/**
	 * 查询资讯类别总数
	 * @return	 资讯详情数
	 */
	Long getTotalCount();

	/**
	 * 保存资讯类别详情
	 * @param newsCategory
	 * @return
	 */
	Message saveOrUpdateNewsCategory(NewsCategory newsCategory);

	
	/**
	 * 删除资讯类别详情项
	 * @param id
	 * @return
	 */
	Message removeNewsCategory(Integer id);


/**
 * 获取资讯修改的详情
 * @param dicDataId
 * @return
 */
	NewsCategory newsCategoryModifyInfo(Integer id);

	/**
	 * 验证资讯表单名称
	 * @param dictionary
	 * @return
	 */
	Message checkNewsCategoryInput(NewsCategory newsCategory);

	List<NewsCategory> findAll();
	
	List<NewsCategoryVO> getVo(List<NewsCategory> nc);

}
